<!-- ngRepeat + ngResource-->
<ol class="breadcrumb">
    <li><a href="#">首页</a></li>
    <li><a href="#">项目</a></li>
    <li class="active">所有成员</li>
</ol>

<div class="row" ng-init="list()">
    <!-- START panel-->
    <div class="col-lg-4 panel panel-default">
        <div class="panel-heading">
            <h4>添加成员</h4>
        </div>
        <div class="panel-body">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-3 control-label">成员账号</label>

                    <div class="col-lg-9">
                        <input type="text" class="form-control" ng-model="member.email" required/>
                    </div>

                </div>

                <div class="form-group">
                    <div class="col-lg-offset-3 col-lg-6">
                        <button type="submit" class="btn btn-primary btn-block" ng-click="create()">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="col-lg-offset-1 col-lg-6 panel panel-default">
        <div class="panel-heading">
            <h4>成员列表</h4>
        </div>
        <div class="panel-body" ng-repeat="member in members">
            <div class="col-lg-3">{{member.userId.email}}</div>
            <div class="col-lg-8">{{member.createAt}}</div>
        </div>
    </div>
    <!-- END panel-->


<toaster-container toaster-options="{'position-class': 'toast-bottom-right', 'close-button':true}"></toaster-container>